'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { router, controller,middleware } = app;
  // const jwt = middleware.jwt();
  router.get('/', controller.home.index);

  //登录
  router.post('/login',controller.user.login);
  router.post('/registry',controller.user.registry);

  router.post('/vote/newvote',controller.vote.createvote);
  router.get('/vote/allVote',controller.vote.list);
  
};
